package com.example.mapper;

import com.example.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface EmployeeMapper {
    void insert(Employee employee);

    void updateById(Employee employee);

    void deleteById(Integer id);

    List<Employee> selectAll(Employee employee);

    @Select("select * from `employee` where id = #{id}")
    Employee selectById(Integer id);


}
